//  环境变量
const ENV = process.env.NODE_ENV;
const base_url =
  ENV === "development"
    // 1.0开发、生产
    // ? "http://111.17.201.197:8888"
    // : "http://111.17.201.197:8888";
    // 1.0开发、生产
    // ? "http://111.17.201.197:9999"
    // : "http://111.17.201.197:9999";
    // 2.0开发
    // ? "http://111.17.201.197:9998"
    // : "http://111.17.201.197:9998";
    // 预生产
    ? "http://111.17.201.197:999"
    : "http://111.17.201.197:999";
// //2.0生产
// ? "http://111.17.201.197:7777"
// : "http://111.17.201.197:7777";



// 拼接请求路径
const AJAX_PATH = {
  login: base_url + "/login", // 登录 请求路径
  getNavMenu: base_url + "/getNavMenu", // 获取菜单 请求路径

  /* 登录相关    接口地址 */
  getCaptcha: base_url + "/sys/randomImage/", // 验证码
  postLogin: base_url + "/sys/login", // 登录 请求路径

  /* 上传文件*/
  upload: base_url + "/sys/common/upload", // 通用上传接口
  getStaticFileURL: base_url + "/sys/common/static", //获取文件路径

  /* 公用   接口地址 */
  getRepareBy: base_url + "/warehouse/warehousetransferlibrarylist/getRepareBy", //新增了获取制单人接-转库用

  getPrepareBy: base_url + "/warehouse/warehouseassemblyorder/getPrepareBy", //新增了获取制单人接-组装用

  getPrepareBytransformation: base_url + "/warehouse/warehousemorphologicaltransformation/getPrepareBy", //新增了获取制单人接-库存调整用
  passwordChange: base_url + "/sys/user/passwordChange", // 修改密码

  getqueryShelves: base_url + "/warehouse/warehousetaskdetailreturn/queryShelves", //出库货架查询

  getPreparedyList: base_url + "/warehouse/warehousedepotform/getSingleProducer", //获取制单人接口
  getqueryInventoryBySpec: base_url + "/warehouse/syncinventoryfiledatabasefields/queryInventoryBySpec", //存货信息档案-根据存货名称模糊搜索
  getqueryInventoryByInvcode: base_url + "/warehouse/syncinventoryfiledatabasefields//queryInventoryByInvcode", //存货信息档案-根据存货糊搜索
  getAllSourceNumber: base_url + "/purchase/purchaseaddorder/getAllSourceNumber", //采购入库源单获取单据号
  getpurchaseaddorder: base_url + "/purchase/purchaseaddorder/info", //采购订单表-分页查询列表
  getzhuankudanju: base_url + "/warehouse/warehousetransferlibrarylist/getDocumetByString", //转库列表获取单据号
  getpurchasesupplier_U8c: base_url + "/purchase/purchasesupplier/list", //供应商信息列表
  getAllNumberName_new_forU8c:
    base_url + "/warehouse/syncwarehousearchives/getWareCodeName", // 返回所有的仓库编码、仓库名称 newU8c
  getUserByRoleName: base_url + "/sys/user/queryUserByPost", //  根据角色名来查询用户名
  getPositionById: base_url + "/sys/position/queryById", // 职务表-通过id查询
  getUserRightsByToken: base_url + "/sys/navigation/getUserNavigationByToken", // 获取用户权限
  getUserInfoByUserId: base_url + "/sys/user/infoForHr", // 获取用户信息通过用户 Id
  getUserNameByUserId: base_url + "/sys/user/queryWorkNoAndNameById", //根据用户id查询用户名、工号
  getUserRoleNameByUserNameId: base_url + "/sys/user/queryUserByPost", //根据角色名查询用户名、用户id
  getqueryNameAndIdByWorkNo: base_url + "/sys/user/queryNameAndIdByWorkNo", //根据工号查询用户名、用户id
  getDepartmentList:
    base_url + "/warehouse/syncdepartmentfiles/getDepartmentTree", // 获取部门树
  getStorageName: base_url + "/warehouse/syncwarehousearchives/getWareCodeName", // 获取所有仓库的名称和编码
  getInventoryInformation:
    base_url + "/warehouse/warehouseinventoryinformationfile/getInfo", // 获取存货信息的名称和编码、规格、单位
  getInventoryByDepotId:
    base_url + "warehouse/warehousepositioninformation/queryTreeListById", //根据仓库ID获取存货信息
  getBatchNumberList:
    base_url + "/warehouse/warehouseobjectinformation/getBatchNumberById", // 通过存货Id 获取存货批次号

  getEnableOutOther: base_url + "/warehouse/warehousedepotform/EnableOutOther", // 数量验证-其他出库-查询源单剩余可出库数量

  getEnableOutInfrastructure:
    base_url + "/warehouse/warehousedepotform/EnableOutInfrastructure", // 数量验证-基建出库-查询源单剩余可出库数量

  getUserByToken: base_url + "/sys/user/getUserSectionInfoByToken", //根据TOKEN获取用户的部分信息
  getPositionInformationList:
    base_url + "/sale/warehousepositioninformation/queryTreeList", // 获取全部的仓位信息
  getReceiveSendTypeList:
    base_url + "/warehouse/warehousereceivetypemanagement/list", //获取收发类别列表
  // getInventoryInformationByStorageId:base_url + "/warehouse/warehousereceivetypemanagement/list", //根据仓库 Id 查询物品信息
  getReceiveSendTypeListAll:
    base_url + "/warehouse/warehousereceivetypemanagement/listAll", //获取全部收发类别
  getPositionInformationListByDepotId:
    base_url + "/warehouse/warehousepositioninformation/queryTreeListById", // 根据仓库Id 查询该仓库的库位
  getAllPackageList:
    base_url + "/warehouse/warehousekitmanagement/queryPackageParts", // 获取成套件的所有列表

  getAllClientList: base_url + "/sale/salecustomerbasicinformation/getAll2", // 获取所有的客户
  getSearchClientList:
    base_url + "/sale/salecustomerbasicinformation/queryByName", // 根据客户名称进行模糊查询
  getgetBatchNumberById:
    base_url + "/warehouse/warehouseobjectinformation/getBatchNumberById", //物品信息表-存货id、仓库id、出入库标识查找批次号(批次号后端写死，不用传)
  getgetSearchInventoryInformationFile:
    base_url +
    "/warehouse/syncinventoryfiledatabasefields/queryInventoryByWareId", //存货模糊查询
  checkToken: base_url + "/sys/checkToken", // 检验token是否过期

  getInventoryOrganization:
    base_url + "/warehouse/syncinventoryorganization/list", // 库存组织-列表

  getCompanyTree: base_url + "/warehouse/synccompany/getCompanyTree", // 公司-返回公司树

  getSyncInventoryOrganizationList:
    base_url + "/warehouse/syncinventoryorganization/queryAll", // 库存组织-返回所有库存组织不分页

  queryStorageShelvesList: base_url + "/warehouse/warehousetaskdetailreturn/queryOutShelves", // 查询仓库中货架列表

  saveGoodsShelvesInfo: base_url + "/warehouse/warehousepositionbinding/save", // 保存货架信息

  queryByLikeName:
    base_url + "/warehouse/synccustomermanagementfile/queryByLikeName", // 客商管理档案-根据客户名模糊查询客户

  // getSyncInventoryOrganizationList:base_url + "/warehouse/syncinventoryorganization/queryAll", // 返回库存组织不分页
  getpk_corpList: base_url + "/warehouse/synccompany/getCompanyTree",
  //按仓库档案主键查询库管员
  getselectKeeperByPkStordoc:
    base_url + "/warehouse/warehousegodownkeeper/selectKeeperByPkStordoc",
  // 采购入库、产成品入库、销售出库、基建出库、生产领料出库、其他出库 接口
  saveRuKuZiDuanBiao: base_url + "/warehouse/warehousedepotform/save", // 入库字段表-保存
  getOrder: base_url + "/warehouse/warehousedepotform/createSpecilId", // 传递参数，获取单据号
  getOrderList: base_url + "/warehouse/warehousedepotform/getDocumetByString", // 传递参数，获取单据列表
  getOrderListTuiKu: base_url + "/warehouse/warehousereturnrequest/getDocumetByString", // 退库申请-根据标识获得单据号

  addInOrOutStorageOrderAndGoods:
    base_url + "/warehouse/warehousedepotform/add", // 新增出入库表单和物品信息
  updateInOrOutStorageOrderAndGoods:
    base_url + "/warehouse/warehousedepotform/updateAll", // 更新出入库表单和物品信息
  warehousereturnrequest:
    base_url + "/warehouse/warehousereturnrequest/updateAll", //退库申请表-一个接口修改
  deleteInOrOutStorageOrderAndGoods:
    base_url + "/warehouse/warehousedepotform/delete", // 删除出入库表单和物品信息
  addInOrOutStorageGoods:
    base_url + "/warehouse/warehouseobjectinformation/saveBatch", // 新增出入库表单中的物品信息
  deleteInOrOutStorageGoods:
    base_url + "/warehouse/warehouseobjectinformation/delete", // 仅删除出入库表单的物品信息
  getInOrOutStorageOrderAndGoodsList:
    base_url + "/warehouse/warehousedepotform/listAll", // 获取出入库表单和物品信息的列表
  getInOrOutStorageOrderAndGoodsInfoById:
    base_url + "/warehouse/warehousedepotform/listAllById", // 通过单据Id获取出入库表单和物品信息
  updateInOrOutStorageOrder: base_url + "/warehouse/warehousedepotform/update", //  修改出入库表单数据
  getSyncBusinessTypeVoList:
    base_url + "/warehouse/syncbusinesstype/getSyncBusinessTypeVo", // 获取业务类型
  getUserInfoByUserName: base_url + "/sys/user/queryByUserName", // 根据姓名查询用户信息（后端模糊查询）
  getDeptByUserId: base_url + "/sys/user/queryAccountingDeptByUserId", //根据制单人获取该制单人的核算部门
  getDepartmentTreeNew:
    base_url + "/warehouse/syncdepartmentfiles/getDepartmentTree", // 部门档案-返回部门树

  saveShelfInfo: base_url + "/warehouse/warehousepositionbinding/savaShelf", // 出入库单保存货架信息
  changeSaleOrderInfo: base_url + "/sale/salesalesorderadded/update", // 改变销售订单信息
  changeSaleGoodsInfo: base_url + "/sale/salesalesorderrequestform/update", // 改变销售订单表单信息
  //---------工作流----------
  // getRoleByProcessName: base_url + "/hr/acttaskrole/list", // 通过流程名称查询角色名字
  getUserInfoByTaskId: base_url + "/hr/acttaskrole/queryUserByTaskId", // 通过任务id查询人员信息
  getProcessstepByFlowName: base_url + "/sys/actprocessstep/queryByName", // 根据任务名称获取流程
  postUpcomingTasksList: base_url + "/sys/rutask/list", //拉取待办任务列表
  postProcessInformation: base_url + "/sys/rutask/getHandleData", //查看运行中的流程信息
  postFinishTaskList: base_url + "/sys/hitask/list", //获取已办任务列表
  postQueryHisInfo: base_url + "/sys/hiprocdef/view", //查阅历史流程信息
  postFinalDeleteTask: base_url + "/sys/hiprocdef/delete", //彻底删除流程
  postHandleTasks: base_url + "/sys/rutask/handle", //办理任务
  updatechangeForm: base_url + "/sys/acthivarinst/updateForm", //更改工作流中代办的表格信息

  updateJiJian: base_url + "/warehouse/warehouseinfrastructuredelivery/update", //基建工作流-修改
  updateJiJianBiaoDan:
    base_url + "/warehouse/warehouseinfrastructuredeliverycontent/update", //基建工作流表单-修改

  updateQiTa: base_url + "/warehouse/warehouseotheroutbound/update", //其它工作流-修改
  updateQiTaBiaoDan:
    base_url + "/warehouse/warehouseotheroutboundcontent/update", //其它工作流表单-修改

  // ------- 字典表 ------- ;
  getPackagingTypeList:
    base_url + "/sys/dict/getDictItems/warehousePackagingType", // 获取包装形式
  getSaleDepartment: base_url + "/sys/dict/getDictItems/commonSalesDepartment", // 获取销售部门
  getAuxiliaryUnit: base_url + "/sys/dict/getDictItems/warehouseAuxiliaryUnit", //获取仓库系统辅助单位字典表
  // getInventoryClassificationList:
  //   base_url + "/sys/dict/getDictItems/warehouseInventoryClassification", //存货分类

  getdepartmentlistTree: base_url + "/sys/sysDepart/queryIdTree", //获取部门字典表
  getAssemblyList:
    base_url + "/sys/dict/getDictItems/warehouseAssemblyOrderType", //组装类型字典表
  getwarehouseReceiveFlag:
    base_url + "/sys/dict/getDictItems/warehouseReceiveFlag", //收发标志
  getwarehouseprojectsunderconstruction:
    base_url + "/sys/dict/getDictItems/warehouseprojectsunderconstruction", //在建项目字典表
  getWarehouseTransferType:
    base_url + "/sys/dict/getDictItems/warehouseTransformationType", // 转换类别字典表
  getAuditMarkAndDocumentStatus:
    base_url + "/sys/dict/getDictItems/warehouseAuditMark", //单据状态
  getSourceNumber:
    base_url + "/warehouse/warehousedepotform/getSourceNumberByString", //获取生产领料单的数据

  //↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘1、基础信息管理jerry的区域，不要进来写代码哈~~~↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙
  //                                                   ***************
  // -----------1.1库存组织档案-----------
  updateownedBranch: base_url + "/warehouse/syncwarehousearchives/ownedBranch", //更新所属分厂
  duplicateCheck: base_url + "/sys/duplicate/check", //基本信息-重复校验
  InventoryOrganizationFile:
    base_url + "/warehouse/warehouseinventoryorganizationfile/save", // 库存组织档案-保存
  getAllNumberName:
    base_url + "/warehouse/syncwarehousearchives/getWareCodeName", // 返回所有的仓库编码、仓库名称 newU8c
  GetInventoryOrganizationFile:
    base_url + "/warehouse/syncwarehousearchives/list", // 获取库存组织档案-列表
  updateInventoryOrganization:
    base_url + "/warehouse/warehouseinventoryorganizationfile/update", //库存组织档案-修改
  deleteInventoryOrganization:
    base_url + "/warehouse/warehouseinventoryorganizationfile/delete", //库存组织档案-删除
  // -----------1.2存货信息档案-----------
  searchInventoryByWareId:
    base_url +
    "/warehouse/syncinventoryfiledatabasefields/queryInventoryByWareId", //存货信息档案-根据存货名称模糊搜索
  getcreateInventoryNo:
    base_url + "/warehouse/warehouseinventoryinformationfile/createInventoryNo", //用于根据存货分类自动生成存货编码
  saveBatch: base_url + "/warehouse/warehousewarehouseandtype/saveBatch", //存货分类与仓库关系-保存存货分类和仓库关系
  getqueryBatchByTypeId:
    base_url + "/warehouse/warehousewarehouseandtype/queryBatchByTypeId", //存货分类与仓库关系-根据存货分类id获取仓库ID
  getInventoryTypeGoodsInfo:
    base_url + "/warehouse/warehouseinventoryinformationfile/getInfoBySort", //获取相应存货分类下物品信息
  InventoryInformation:
    base_url + "/warehouse/warehouseinventoryinformationfile/save", //存货信息档案-保存
  GetInventoryInformationList:
    base_url + "/warehouse/syncinventoryfiledatabasefields/list", //存货信息档案列表-获取
  InventoryexportExcel:
    base_url + "/warehouse/warehouseinventoryinformationfile/exportExcel", //存货信息档案-用于导出表格
  UpdateInventoryInformation:
    base_url + "/warehouse/warehouseinventoryinformationfile/update", //存货信息档案-修改
  DeleteInventoryInformation:
    base_url + "/warehouse/warehouseinventoryinformationfile/delete", //存货信息档案-删除
  VariousInventoryInformation:
    base_url + "/warehouse/warehouseinventoryinformationfile/getInfo", //存货信息档案-返回存货编码与名称、规格型号、单位
  GetUserSectionInfoByToken: base_url + "/sys/user/getUserSectionInfoByToken", // 根据TOKEN获取用户的部分信息
  // -----------1.3仓库管理员信息管理-----------
  SaveWarehouseManager: base_url + "/warehouse/warehousegodownkeeper/save", //仓库管理员信息管理-保存
  UpdateWarehouseManager: base_url + "/warehouse/warehousegodownkeeper/update", //仓库管理员信息管理-修改ID
  GetWarehouseManagerList: base_url + "/warehouse/warehousegodownkeeper/list", //仓库管理员信息管理-列表
  GetWarehouseManagerIDList: base_url + "/warehouse/warehousegodownkeeper/info", //仓库管理员信息管理-按照ID查找
  DeleteWarehouseManagerList:
    base_url + "/warehouse/warehousegodownkeeper/delete", //仓库管理员信息管理-删除
  getAllNumberName1:
    base_url + "/warehouse/syncwarehousearchives/getWareCodeName", // 返回所有的仓库编码、仓库名称 newU8c

  // -----------1.4仓位信息管理-----------
  GetBinInformationTree:
    base_url + "/warehouse/warehousepositioninformation/queryTreeList", // 查出所有仓位,并以树结构数据格式响应给前端
  SaveGetBinInformationTree:
    base_url + "/warehouse/warehousepositioninformation/save", // 仓位信息管理-保存
  UpdateGetBinInformationTree:
    base_url + "/warehouse/warehousepositioninformation/update", // 仓位信息管理-修改
  DeleteGetBinInformationTree:
    base_url + "/warehouse/warehousepositioninformation/delete", // 仓位信息管理-删除
  getAllNumberName2:
    base_url + "/warehouse/syncwarehousearchives/getWareCodeName", // 返回所有的仓库编码、仓库名称 newU8c
  // -----------1.5存货分类信息管理-----------
  GetSaveCargoClassification:
    base_url + "/warehouse/syncinventoryclassification/getClassificationTree", // 存货分类-存货分类树
  SaveCargoClassification:
    base_url + "/warehouse/warehouseinventoryclassification/save", //存货分类-保存
  UpdateCargoClassification:
    base_url + "/warehouse/warehouseinventoryclassification/update", //存货分类-修改
  DeleteCargoClassification:
    base_url + "/warehouse/warehouseinventoryclassification/delete", // 存货分类-通过id删除

  //                                                   ***************
  //↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↗↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖↖

  getWarehouseGiveaway: base_url + "/sys/dict/getDictItems/warehouseGiveaway", // 是否赠品
  //------------1.4收发类别管理------------------------
  addReceiveSendType:
    base_url + "/warehouse/warehousereceivetypemanagement/save", // 收发类别保存
  deleteReceiveSendType:
    base_url + "/warehouse/warehousereceivetypemanagement/delete", //根据id删除收发类别
  updateReceiveSendType:
    base_url + "/warehouse/warehousereceivetypemanagement/update", //修改收发类别
  getReceiveSendTypeByName:
    base_url + "/warehouse/warehousereceivetypemanagement/infoByName",

  /**
   * 凭证辅助核算信息
   */
  getSupplementaryAccountingInfo:
    base_url + "/sys/dict/getDictItems/getSupplementaryAccounting",

  //------------1.5成套件管理-------------------------
  GetPackageList: base_url + "/warehouse/warehousekitmanagement/list", //获取成套件列表
  addPackageInfo: base_url + "/warehouse/warehousekitmanagement/save", //新增成套件信息
  deletePackageInfo: base_url + "/warehouse/warehousekitmanagement/delete", //根据id删除成套件信息
  updatePackageInfo: base_url + "/warehouse/warehousekitmanagement/update", //修改成套件信息

  //------------1.6计量档案管理-------------------------
  SaveMeasurement: base_url + "/warehouse/syncmeasurementfiles/save", //计量档案-保存
  GetMeasurementList: base_url + "/warehouse/syncmeasurementfiles/list", //获取计量单位列表
  GetMeasurementIDList: base_url + "/warehouse/warehousegodownkeeper/info", //计量档案-信息
  getAllMeasurementName:
    base_url + "/warehouse/syncmeasurementfiles/getCodeAndName", // 返回所有的计量单位编码、计量单位名称

  //------------1.7库存组织管理-------------------------
  GetInventoryOrganizationList:
    base_url + "/warehouse/syncinventoryorganization/list", //获取库存组织列表
  deleteInventoryOrganizationInfo:
    base_url + "/warehouse/syncinventoryorganization/delete", //根据id删除库存组织信息
  getAllInventoryName:
    base_url + "/warehouse/syncinventoryorganization/getAllCodeName", // 返回所有的库存组织编码、库存组织名称
  GetInventoryIDList: base_url + "/warehouse/syncinventoryorganization/info", //库存组织-信息
  // ————————————————————————————————————2、期初数据 qichu——————————————————————————
  // 期初数据导入
  // 期初数据导入模板下载
  downloadTemplete: base_url + "/warehouse/warehousebeginningdataentry/download",

  // 期初数据导入
  uploadExcel: base_url + "/warehouse/warehousebeginningdataentry/importExcel",
  // 2.1期初数据录入
  GetBeginningDataentryList:
    base_url + "/warehouse/warehousebeginningdataentry/list", //获取期初数据列表
  addBeginningDataentry:
    base_url + "/warehouse/warehousebeginningdataentry/save", //新增期初数据信息
  deleteBeginningDataentry:
    base_url + "/warehouse/warehousebeginningdataentry/delete", //期初数据录入-通过id删除
  updateBeginningDataentry:
    base_url + "/warehouse/warehousebeginningdataentry/update", // 期初数据录入-修改
  GetPackageList1: base_url + "/warehouse/warehousekitmanagement/list", //获取存货编码
  GetSaveCargoClassification3:
    base_url + "/warehouse/syncinventoryclassification/getClassificationTree", // 存货分类-存货分类树
  //2.2期初数据查询
  searchBeginningDataentryList:
    base_url + "/warehouse/warehousebeginningdataentry/queryBeginningData", //期初数据查询
  GetSaveCargoClassification1:
    base_url + "/warehouse/syncinventoryclassification/getClassificationTree", // 存货分类-存货分类树
  searchInventoryByWareId1:
    base_url +
    "/warehouse/syncinventoryfiledatabasefields/queryInventoryByWareId", //存货信息档案-根据存货名称模糊搜索
  GetInventoryInformationList1:
    base_url + "/warehouse/syncinventoryfiledatabasefields/list", //存货信息档案列表-获取
  //↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘3、入库管理模块↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙
  // ------- //TODO:入库管理模块 ------- ;
  //----------------采购入库单----------------------------------
  //!退库接口开始
  getDocumetByString:
    base_url + "/warehouse/warehousereturnrequest/getDocumetByString", //退库申请-根据标识获得单据号
  queryRequestList_back:
    base_url + "/warehouse/warehousereturnrequest/queryRequestList", //根据表头ID生成源单物品表(用于退库)
  createSourceList_back:
    base_url + "/warehouse/warehousereturnrequest/createSourceList", //根据退库申请生成源单(用于退库)--上table用
  getqueryObjectInformationBy:
    base_url + "/warehouse/warehousedepotform/queryObjectInformationBy", // 根据出入库表头ID查询物品信息（采购入库申请退库用）
  //!退库接口结束

  //!退库申请接口开始
  getturnrequestformdelete_back_delete:
    base_url + "/warehouse/warehousereturnrequest/delete", //退库申请-通过id删除
  saveOutStockInfo_back: base_url + "/warehouse/warehousereturnrequest/add", // 退库保存
  savewarehousereturnrequest_back:
    base_url + "/warehouse/warehousereturnrequest/save", //退库申请表表头-保存--退库申请的保存-用
  generateSourceList_back:
    base_url + "/warehouse/warehousedepotform/generateSourceList", //生成出入库源单列表（采购入库退库用--上table用
  getqueryContentInformationBy_back:
    base_url + "/warehouse/warehousedepotform/queryContentInformationBy", //根据出入库表头ID查询所有物品信息--下table用
  getwarehousereturnrequestlist_back:
    base_url + "/warehouse/warehousereturnrequest/listAll", //退库申请的列表
  warehousereturnrequest_back_check:
    base_url + "/warehouse/warehousereturnrequest/update", //退库申请表表头-修改
  getArrayListByOriginId:
    base_url + "/warehouse/warehousedepotform/queryContentInformationBy", //根据出入库表头ID查询所有物品信息--下table用
  //!退库申请接口结束
  getPurchaserequest: base_url + "/purchase/purchaserequest/list", //采购计划源单接口

  getPurchaserequestinfo: base_url + "/purchase/purchaserequest/info", //根据采购计划id查询详情

  updatepurchaseaddorder: base_url + "/purchase/purchaseaddorder/updateClosed", //更新订单关闭-上table-用于状态审核开启关闭标志位修改
  updatepurchaseiteminformation:
    base_url + "/purchase/purchaseiteminformation/update", //采购物品信息-修改-下table-用于状态审核开启关闭标志位修改
  searchUserInfoByUserName: base_url + "/sys/user/queryByUserName", //根据姓名查询用户信息（后端模糊查询
  getsyncbusinesstype_U8c:
    base_url + "/warehouse/syncbusinesstype/getSyncBusinessTypeVo", //业务类型
  getAllCodeName:
    base_url + "/warehouse/syncinventoryorganization/getAllCodeNameID", //库存组织-返回全部库存组织编码和库存组织名称和ID_newU8c_id+name+code
  getStorageGoodsList: base_url + "/warehouse/warehousedepotform/listAll", //采购入库列表信息
  getBatchNumber:
    base_url + "/warehouse/warehouseobjectinformation/createBatchNumber", //根据当日日期生成批次号
  getWarehouseDocumentNo: base_url + "/warehouse/warehousedepotform/createId", //获取单据号
  getInStorageInfoById: base_url + "/warehouse/warehousedepotform/listAllById", // 通过入库表单id 查询入库信息
  getDocumentList:
    base_url + "/warehouse/warehousedepotform/getDocumetByString", //获取采购入库单据号列表信息
  getPositionList: base_url + "/warehouse/warehousepositioninformation/list", //获取仓位列表
  getSupplierList: base_url + "/purchase/purchasesupplier/list", //获取供应商列表
  getGoodsList: base_url + "/warehouse/warehouseinventoryinformationfile/list", //获取货物名称列表
  getContractorList:
    base_url + "/warehouse/synccustomermanagementfile/getAllFarmer", //获取承包户列表
  getPurchaseStorageList: base_url + "/purchase/purchaseaddorder/queryAll", //获取采购入库根据源单生成列表
  getPurchaseStorageInfo:
    base_url + "/purchase/purchaseaddorder/queryInventoryByOrderId", //获取采购订单详情
  getBalanceInOutStockBySourceNumber:
    base_url +
    "/warehouse/warehousedepotform/queryBalanceInOutStockBySourceNumber", //数量验证-根据源单入库

  getsalepurchaseorder: base_url + "/sale/salepurchaseorder/listTwo", // 用于外购订单列表
  getsalepurchaseorderinfo: base_url + "/sale/salepurchaseorder/info", // 用于外购订单详情
  getpurchaseorderNo: base_url + "/purchase/purchaseaddorder/getSourceNumber",//采购订单编号模糊查询
  //-----------------------------产成品入库-----------------------
  saveSelectShelvesByShedId:
    base_url + "/warehouse/warehousepositionbinding/savaShelf", //出入库货架批量保存
  getSelectShelvesByShedId:
    base_url + "/bacteria/bacteriaprocessupload/selectShelvesCodeByShedId", //获取货架
  //获取单据号用
  updatebacteriawarehousecarryover:
    base_url + "/bacteria/bacteriawarehousecarryover/update", //仓库-仓库结转详情按钮，修改表头-上table -  用于状态审核开启关闭标志位修改
  updateClosedbacteria:
    base_url + "/bacteria/bacteriawarehousecarryover/updateClosed", //更新订单关闭-下table -  用于状态审核开启关闭标志位修改
  getMiddleListdetail:
    base_url + "/bacteria/bacteriawarehousecarryover/getMiddleList", //仓库-仓库结转详情按钮，这个详情查出来的是中间的表格
  getCarryOverList: base_url + "/bacteria/bacteriawarehousecarryover/list", //获取仓库结转单(产成品入库根据源单生成)
  getCarryOverInfo: base_url + "/bacteria/bacteriawarehousecarryover/info", //获取仓库结转单详情

  getChanChengPinYuanDanList:
    base_url + "/bacteria/bacteriawarehousecarryover/getCarryForwardList", // 产成品入库根据源单生成的接口
  //获取单据号用
  //↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘↘4、出库管理管理↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙↙
  getTotalGoods: base_url + "/warehouse/warehousedepotform/inventoryBalance", //数量验证-库存余额

  // ---------- 4.1销售出库 ------------
  // 备货通知申请
  getSaleOrderList: base_url + "/sale/salesalesorderadded/listAll", // 获取销售订单列表
  getSaleGoodsByOrderId: base_url + "/sale/salesalesorderadded/getSourceNotice", // 根据销售订单Id 获取订单中的物品
  StockNoticeSave: base_url + "/sys/warehousestocknotification/save", // 提交备货通知申请

  getStockNoticeList:
    base_url + "/warehouse/warehousestocknotification/createBySource2", // 获取备货通知列表
  getSaleGoodsByStockNoticeId:
    base_url + "/warehouse/warehousestocknotificationcontent/listByHeadId2", // 根据备货通知单Id查询备货通知单物品信息
  getStockNoticeGoodsList:
    base_url + "/warehouse/warehousedepotform/EnableOutStockQuantity", // 根据备货通知单 查询剩余物品数量

  InOrOutStorageOrder: base_url + "/warehouse/warehousedepotform/add", // 出入库表单 出入库上方表单及下方表单
  deleteInOrOutStorageOrder: base_url + "/warehouse/warehousedepotform/delete", // 删除出入库表单
  updateInOrOutStorageGoods:
    base_url + "/warehouse/warehouseobjectinformation/update", // 更新出入库物品信息

  InOrOutStorageGoods:
    base_url + "/warehouse/warehouseobjectinformation/saveBatch", // 出入库物品信息,批量保存！！！！ , 需要出入库单作为外键。
  getInOrOutStorageOrderList:
    base_url + "/warehouse/warehousedepotform/listAll", // 获取出入库列表
  getInOrOutStorageList: base_url + "/warehouse/warehousedepotform/listAll", // 通过出入库标识和出入库类别标识查找信息
  getInOrOutStorageInfoById:
    base_url + "/warehouse/warehousedepotform/listAllById", // 通过出入库表单id 查询出入库信息

  //---------------4.2生产材料出库--------------------
  getSearchInventoryInformationFile:
    base_url +
    "/warehouse/syncinventoryfiledatabasefields/queryInventoryByWareId", //存货模糊搜索
  getSupplierInfo: base_url + "/purchase/purchasesupplier/getInfo", //获取供应商信息列表
  saveShengChanLingLiao: base_url + "/sys/warehouseproducepicking/save", //保存生产领料信息
  getProducePickingInfo:
    base_url + "/warehouse/warehouseproducepicking/createBySource2", //获取生产领料源单上半部分
  getProducePickingGoodsInfo:
    base_url + "/warehouse/warehouseproducepickingcontent/createBySource2", //获取生产领料源单的物品信息
  getTotalGoodsQuantity:
    base_url + "/warehouse/warehousequerystatistics/totalgoods", //!获取对应仓库下存货的数量
  getCustomerInfoByName:
    base_url + "/warehouse/synccustomermanagementfile/queryByLikeName", //!根据客户姓名模糊查询客户信息
  getQuantityUnfinishedGoods:
    base_url + "/warehouse/warehousedepotform/EnableOutProducePicking", //源单中剩余未出库完毕的货物的数量
  updateShengChanLingLiao: base_url + "/sys/warehouseproducepicking/update", //更新生产领料信息
  updateShengChanLingLiaoRecord:
    base_url + "/sys/warehouseproducepickingcontent/update", //更新生产领料信息
  GetSupplierTreeList:
    base_url + "/warehouse/syncregionalclassification/queryTreeList", //获取供应商树信息
  getSupplierInfoByArea:
    base_url + "/warehouse/synccustomermanagementfile/queryByArea", //根据地区获取该分类下的供应商
  //---------------4.2基建出库--------------------
  saveJiJianChuKuShenQing:
    base_url + "/warehouse/warehouseinfrastructuredelivery/save", //基建出库申请--保存
  getShouFaLeiBieList: base_url + "/sale/warehousereceivetypemanagement/list", //获取-收发类别列表
  warehouseinfrastructuredelivery:
    base_url + "/sys/warehouseinfrastructuredelivery/save", //基建工作流-保存
  // getwarehouseinfrastructuredeliveryList:
  // base_url + "/warehouse/warehouseinfrastructuredelivery/list", //基建出库申请单生成基建出库单-查询
  getwarehouseinfrastructuredeliveryList:
    base_url + "/warehouse/warehouseinfrastructuredelivery/createBySource2", //基建出库申请单生成基建出库单-查询
  getJiJianYuanDan:
    base_url + "/warehouse/warehouseinfrastructuredelivery/createBySource", //基建工作流-根据源单生成-上半部分
  // getcreateBySourceById:
  // base_url +
  // "/warehouse/warehouseinfrastructuredeliverycontent/getAllByHeadId", //基建工作流表单-信息-通过id查询
  getcreateBySourceById:
    base_url +
    "/warehouse/warehouseinfrastructuredeliverycontent/getAllByHeadId2", //基建工作流表单-信息-通过id查询
  //  getZaiJian:base_url+"/purchase/purchaseengineeringinformationmaintenance/getNameNumber",//在建项目列表
  // getZaiJian:
  //   base_url +
  //   "/purchase/purchaseengineeringinformationmaintenance/getNameNumber", //在建项目列表
  getZaiJian:
    base_url + "/warehouse/syncprojectmanagementarchives/queryAllJobNameCode", //在建项目列表

  //---------------4.2其它出库--------------------
  // saveQiTaChuKuShenQing:
  //   base_url + "/Warehouse/warehouseinfrastructuredelivery/save", //基建出库申请--保存
  savewarehouseotheroutbound: base_url + "/sys/warehouseotheroutbound/save", //其他工作流-保存
  getwarehouseotheroutboundlist:
    base_url + "/warehouse/warehouseinfrastructuredelivery/createBySource", //其他出库申请单生成其他出库单-查询
  // getQiTaYuanDan: base_url + "/warehouse/warehouseotheroutbound/createBySource", //其他出库工作流-根据源单生成
  getQiTaYuanDan:
    base_url + "/warehouse/warehouseotheroutbound/createBySource2", //其他出库工作流-根据源单生成
  getwarehouseotherlistByHeadId:
    base_url + "/warehouse/warehouseotheroutboundcontent/listByHeadId2", //其他出库工作流的-通过headId获取

  // ----------- 库存调整 -----------
  // ----------- 4.1 转库 -----------
  getWarehouseTransferList:
    base_url + "/warehouse/warehousetransferlibrarylist/listTransferLibrary", // 获取转库列表
  postUpdateWarhouseTransfer:
    base_url + "/warehouse/warehousetransferlibrarylist/updateAll", //更新转库单表头
  postWarhouseTransfer:
    base_url + "/warehouse/warehousetransferlibrarylist/add", // 保存转库单
  getWarhousePositionById:
    base_url + "/warehouse/warehousepositioninformation/queryTreeListById", //  根据仓库id查询仓位
  getDeleteWarhouseTrasfer:
    base_url + "/warehouse/warehousetransferlibrarylist/delete", // 根据id删除

  // --------------- 4.2 组装 --------------------
  saveAssemblyOrderAndGoods: base_url + "/warehouse/warehouseassemblyorder/add", // 组装新增表单和物品信息
  updataAssemblyOrderAndGoods: base_url + "", // 组装修改表单和物品信息
  updataAssemblyOrder: base_url + "/warehouse/warehouseassemblyorder/update", // 组装表单更新
  deleteAssemblyOrderAndGoods:
    base_url + "/warehouse/warehouseassemblyorder/delete", // 组装删除表单和物品信息
  getAssemblyOrderAndGoodsList:
    base_url + "/warehouse/warehouseassemblyorder/listAssemblyOrder", // 获取组装列表
  saveAssemblyGoods: base_url + "/warehouse/warehouseassemblyform/saveBatch", // 组装新增物品信息
  deleteAssemblyGoods: base_url + "/warehouse/warehouseassemblyform/delete", // 组装删除物品信息
  getAssemblyOrderAndGoodsById: base_url + "", // 通过单据Id获取出组装单据和物品信息

  // ----------- 4.3 形态转换 -----------
  getWarhouseMorphologicalTransformationList:
    base_url +
    "/warehouse/warehousemorphologicaltransformation/listMorphologicalTransformation", // 获取形态转换列表
  postUpdateWarhouseMor:
    base_url + "/warehouse/warehousemorphologicaltransformation/update", // 更新形态转换
  postSaveWarhouseMor:
    base_url + "/warehouse/warehousemorphologicaltransformation/add", // 保存形态转换
  getDeleteWarhouseMor:
    base_url + "/warehouse/warehousemorphologicaltransformation/delete", // 删除形态转换表头
  // 仓库列表

  getAssemblyListAndId:
    base_url + "/warehouse/warehouseassemblyorder/getDocumentAndId", // 获取组装单据号和Id
  getAssemblyListAndId1:
    base_url + "/warehouse/warehousemorphologicaltransformation/queryDocument", // 获取形态转换单据号
  getWarehouseInfo:
    base_url + "/warehouse/syncwarehousearchives/getWareCodeName", //获取所有的仓库编码、仓库名称
  getTransformationCodeName:
    base_url + "/warehouse/syncinventoryorganization/getAllCodeNameID", // 返回所有的库存组织编码、库存组织名称

  //---------------退库-----------------
  postturnrequestformsave: base_url + "/warehouse/warehousereturnrequest/save", //退库申请物品信息表-保存
  geteturnrequestformlist: base_url + "/warehouse/warehousereturnrequest/list", //退库申请物品信息表-列表
  getturnrequestformdelete:
    base_url + "/warehouse/warehousereturnrequest/delete", //退库申请物品信息表-通过id删除
  updateStateUp: base_url + "/warehouse/warehousereturnrequest/update",//修改根据源单生成的表头单据状态
  updateStateUn: base_url + "/warehouse/warehousereturnrequestform/update",//修改根据源单生成的表单单据状态
  getBusinessTypeInfo:
  base_url + "/warehouse/syncbusinesstype/getSyncBusinessTypeVo", //获取业务流程
  //-------------------查询与统计-----------------
  //出库汇总
  getchukulist:
    base_url + "/warehouse/warehousequerystatistics/queryOutWarehousingSummary", //获取出库汇总列表
  getcustomerlist: base_url + "/purchase/purchasesupplier/getInfo", //获取客户名称字典表
  getinventoryInformationFileIdlist:
    base_url + "/warehouse/warehouseinventoryinformationfile/getInfo", //获取存货名称与存货编码字典表
  getfinishedProductDepotlist:
    base_url + "/warehouse/warehouseinventoryorganizationfile/getAllNumberName", //获取所属单位字典表
  //形态转换汇总
  getxingtaizhuanhuanlist:
    base_url + "/warehouse/warehousequerystatistics/queryFormChangeSummary", //获取形态转换汇总列表
  getDepotIdlist:
    base_url + "/warehouse/warehouseinventoryorganizationfile/getAllNumberName", //获取所属单位字典表
  getInventoryIdlist:
    base_url + "/warehouse/warehouseinventoryinformationfile/getInfo", //获取存货名称字典表
  //库存汇总
  getInventorysummarylist:
    base_url + "/warehouse/warehousequerystatistics/queryInventorySummary", //获取库存汇总列表
  getdepotNoIdlist:
    base_url + "/warehouse/warehouseinventoryorganizationfile/getAllNumberName", //返回所有的仓库编码、仓库名称
  rukuselect:
    base_url + "/warehouse/warehousequerystatistics/queryWarehousingSummary", //入库汇总
  zuzhuangselect:
    base_url + "/warehouse/warehousequerystatistics/queryAssemblySummary", //组装汇总
  shoufacunselect:
    base_url + "/warehouse/warehousequerystatistics/queryReceivingSummary", //收发存汇总
  /* getWarehouseInfo: base_url + "/warehouse/warehouseinventoryorganizationfile/list", //获取仓库列表 */
  //账簿查询
  //台账
  gettaizhanglist:
    base_url + "/warehouse/warehousequerystatistics/queryLedgerList", //获取仓库列表
  //出入库流水账
  getliushuizhang:
    base_url + "/warehouse/warehousequerystatistics/queryDailyAccount",
  getExistingQuantity:
    base_url + "/warehouse/warehousedepotform/inventoryBalance",
  //-------------------------盘点--------------------------
  getinventorylist: base_url + "/warehouse/warehouseinventory/list", //盘点查询页面
  getinventorylist1:
    base_url + "/warehouse/warehousequerystatistics/queryInventorySummary", //盘点页面
  saveInventory: base_url + "/warehouse/warehouseinventory/save", //盘点页面保存
  updateinventorylist: base_url + "/warehouse/warehouseinventory/update", //盘点查询页面更新
  getDocumentNoList: base_url + "/warehouse/warehouseinventory/getDocumentNo", //模糊查询获取单据号列表

  //——————————————————————问题反馈系统————————————————————
  //问题提交
  saveProblemList: base_url + "/sys/sysproblemfeedback/save",
  //列表
  getProblemList: base_url + "/sys/sysproblemfeedback/queryList", //自己人查询列表
  getProblemPersionList: base_url + "/sys/sysproblemfeedback/getList", //部门提交人查询列表
  getProblemInfoDeptList: base_url + "/sys/sysproblemfeedback/reviewList", //信息部根据状态(提交审核)查询列表
  updateProblemInfo: base_url + "/sys/sysproblemfeedback/update", //审核-信息部审批(如果同意填写审批意见后status传‘审核通过’，不同意status传‘审核不通过’)

  getSyncregionalClassiFicationListByName:
    base_url + "/warehouse/synccustomermanagementfile/queryByLikeName", // 模糊查询 返回所有的供应商

  getSaleInfoById: base_url + "/sale/salesalesorderadded/info", // 根据销售订单Id 查询销售订单,用来做跟用友的数据同步
  // =================同步用友的数据
  // asyncInventoryInfoFile:
  //   base_url + "/warehouse/synchronization/inventoryInfoFile", //同步用友存货信息档案
  asyncInventoryInfoFile: base_url + "/account/kettleRunByJava/runTransfer",//调用kettle任务同步用友仓库档案
  // asyncWarehouseArchives:
  //   base_url + "/warehouse/synchronization/warehouseArchives", //同步用友仓库档案
  asyncWarehouseArchives: base_url + "/account/kettleRunByJava/runTransfer",//调用kettle任务同步用友仓库档案
  // asyncInventoryClassification:
  //   base_url + "/warehouse/synchronization/inventoryClassification", //同步用友存货分类信息
  asyncInventoryClassification: base_url + "/account/kettleRunByJava/runTransfer",
  // asynccMeasurementFiles:
  //   base_url + "/warehouse/synchronization/measurementFiles", //同步用友的计量档案管理信息
  asynccMeasurementFiles: base_url + "/account/kettleRunByJava/runTransfer",
  // ------------ 退库管理 -----------
  // 退库申请
  getArrayListByOriginDocument:
    base_url + "/warehouse/warehousedepotform/createSourceList", // 根据源单生成,生成表头
  getArrayListByOriginDocumentHeaderId:
    base_url + "/warehouse/warehousedepotform/queryObjectInformationBy", // 根据源单生成,生成物品
  saveStockReturnInfo: base_url + "/warehouse/warehousereturnrequest/add", // 退库保存
  updateStockReturnInfo: base_url + "/warehouse/warehousereturnrequest/update", // 退库修改 用于审核（这里只能改表头）
  updateStockReturnInventoryInfo:
    base_url + "/warehouse/warehousereturnrequestform/update", // 退库修改 用于修改物品
  getOutStorageApplyList:
    base_url + "/warehouse/warehousereturnrequest/listAll", // 查询出入库所有字段
  getOutStorageApplyInfoById:
    base_url + "/warehouse/warehousereturnrequest/listAllById", // 通过 id 查询退库所有字段

  // 退库
  getArrayListByApplyOriginDocument:
    base_url + "/warehouse/warehousereturnrequest/createSourceList", // 根据源单生成,生成表头
  getArrayListByApplyOriginDocumentHeaderId:
    base_url + "/warehouse/warehousereturnrequest/queryRequestList", // 根据源单生成,生成物品

  saveOutStockInfo: base_url + "/warehouse/warehousereturnrequest/add", // 退库保存
  updateOutStockInfo: base_url + "/warehouse/warehousereturnrequest/update", // 退库修改 用于审核（这里只能改表头）
  updateStockInventoryInfo:
    base_url + "/warehouse/warehousereturnrequestform/update", // 退库修改 用于修改物品
  getOutStorageList: base_url + "/warehouse/warehousereturnrequest/listAll", // 查询出入库所有字段
  getOutStorageInfoById: base_url + "/warehouse/warehousereturnrequest/listAll", // 查询退库所有字段

  // -------------------------------------
  getCustomerNameInfo: base_url + "/sale/salecustomerbasicinformation/list2", //获取客户名称列表

  // 获取用友分厂名称
  getUFIDAFactoryName: base_url + "/warehouse/syncdepartmentfiles/listFatherNull",


  /* ++++++++++++++++++++++++++++++++++++++++++ 导出功能集合 +++++++++++++++++++++++++++++++++++++++++++*/

  // 存货信息档案导出
  inventoryfiledataexportExcel: base_url + "/warehouse/syncinventoryfiledatabasefields/exportExcel",
  // 期初数据录入页面导出
  beginningdataentryExportExcel: base_url + "/warehouse/warehousebeginningdataentry/exportExcel",
  // 采购入库列表导出
  warehousedepotformexportyExportExcel: base_url + "/warehouse/warehousedepotformexport/export",
  //  产成品入库列表导出
  exportProductIn: base_url + "/warehouse/warehousedepotformexport/exportProductIn",
  //  其他入库列表导出
  exportOtherIn: base_url + "/warehouse/warehousedepotformexport/exportOtherIn",

  //销售出库列表导出
  exportSaleOut: base_url + "/warehouse/warehousedepotformexport/exportSaleOut",

  //生产材料出库列表导出
  exportProductionMaterialsOut: base_url + "/warehouse/warehousedepotformexport/exportProductionMaterialsOut",

  // 基建出库列表导出
  exportInfrastructureOut: base_url + "/warehouse/warehousedepotformexport/exportInfrastructureOut",

  // 其他出库列表导出
  exportOtherOut: base_url + "/warehouse/warehousedepotformexport/exportOtherOut",

  // 采购入库退库列表的导出
  exportPurchaseIn: base_url + "/warehouse/warehousedepotformexport/exportPurchaseIn",

  // 销售出库退库列表的导出
  exportSaleBackOut: base_url + "/warehouse/warehousedepotformexport/exportSaleBackOut",

  // 生产材料出库退库列表的导出
  exportProductReturn: base_url + "/warehouse/warehousedepotformexport/exportProductReturn",

  // 基建出库退库列表的导出
  exportInfrastructureReturn: base_url + "/warehouse/warehousedepotformexport/exportInfrastructureReturn",

  // 其他出库退库列表的导出
  exportInotherReturn: base_url + "/warehouse/warehousedepotform/exportInotherReturn",

  //转库列表导出
  transferlibrarylistExport: base_url + "/warehouse/warehousetransferlibrarylist/export",

  // 形态转换列表导出
  exportTransformationOut: base_url + "/warehouse/warehousemorphologicaltransformation/exportMorphologicalTransformationOut",
};



export { base_url, AJAX_PATH };
